//将所有请求函数单独抽离在一个文件中
import api from "./request";

//注册
export const getReg = (data) => api.post("/api/register", data);

//登录
export const getLogin = (data) => api.post("/api/login", data);

//轮播图
export const getSwiper = () => api.get("/api/swiper");

//地理定位
export const getLocation = () =>
  api.get("/api/city/location", {
    params: { key: "c93b0909343a20ccd7aa06f4317b133a" },
  });

//热门城市
export const getHot = () => api.get("/api/city");

//城市搜索
export const getCity = (kw) =>
  api.get("/api/city/search", {
    params: { kw },
  });

//景点列表
export const getList = (page) =>
  api.get("/api/actor/list", {
    params: { page },
  });

//景点分类
export const getac = () => api.get("/api/actor/cates");
